using UnityEngine;

public class shiplanghua : MonoBehaviour
{
	private Material material;

	public float speed = 0.1f;

	public bool isx;

	private void Start()
	{
		material = base.gameObject.GetComponent<Renderer>().sharedMaterial;
	}

	private void Update()
	{
		if (isx)
		{
			material.mainTextureOffset += new Vector2(Time.deltaTime * (0f - speed), 0f);
		}
		else
		{
			material.mainTextureOffset += new Vector2(0f, Time.deltaTime * (0f - speed));
		}
	}
}
